//
//  XingchengCell.m
//  Travel
//
//  Created by lanou3g on 15/4/12.
//  Copyright (c) 2015年 &#21556;&#21697;&#27901;. All rights reserved.
//

#import "XingchengCell.h"

@implementation XingchengCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labelDays = [[UILabel alloc] init];
        self.labelDes = [[UILabel alloc] init];
        self.labelNumber = [[UILabel alloc] init];
        self.imageViewPhoto = [[UIImageView alloc] init];
        self.labelName = [[UILabel alloc] init];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageViewPhoto.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 20, 190);
    [self.contentView addSubview:self.imageViewPhoto];
    [self.imageViewPhoto addSubview:self.labelDays];
    self.labelName.frame = CGRectMake(20, 135, self.contentView.frame.size.width - 20, 20);
    [self.imageViewPhoto addSubview:self.labelName];
    self.labelNumber.frame = CGRectMake(20, 160, self.contentView.frame.size.width - 20, 20);
    [self.imageViewPhoto addSubview:self.labelNumber];
    self.labelDays.frame = self.imageViewPhoto.bounds;
    self.labelDays.backgroundColor = [UIColor blackColor];
    self.labelDays.alpha = 0.2;
    

}
@end
